import http from "../axios/axios";


// 删除一级权限列表
export function _deleteRightInfo (query) {
  return http.request({
    url: `/yuezhan/rights/${query}`,
    method: 'delete',
  })
}
// 删除二级权限列表
export function _deleteRightChild (query) {
  return http.request({
    url: `/yuezhan/children/${query}`,
    method: 'delete',
  })
}
// 修改一级权限的显示隐藏
export function _patchRightInfo (query) {
  return http.request({
    url: `/yuezhan/rights/${query.id}`,
    method: 'PATCH',
    data: query.data
  })
}
// 修改二级权限的显示隐藏
export function _patchRightChild (query) {
  return http.request({
    url: `/yuezhan/children/${query.id}`,
    method: 'patch',
    data: query.data
  })
}